{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" href="__PUBLIC__/admin/statistics/css/statistics_2.css?v=20221110&times={:time()}" />
<link rel="stylesheet" href="__PUBLIC__/admin/material/css/iconfont.css" />
<link rel="stylesheet" href="__PUBLIC__/plugs/bootstrap-select/css/bootstrap-select.css">
{include file="material/_ali_icon" /}
<style>
	.main-box-body .navs .active {
		background: azure;
		color: #03a9f4;
		border: 1px solid #03a9f4;
		border-radius: 5px;
	}

	.table tbody>tr>td {
		padding: 0px 8px;
	}

	.dataTable .table-hover>tbody>tr:nth-child(2n),
	.dataTable .table-hover>tbody>tr:nth-child(2n-1) {
		background-color: #e9e9e9;
	}

	.dataTable .table-hover>tbody>tr:nth-child(3n) {
		background-color: #fff;
	}

	.table-responsive {
		min-height: 470px;
	}

	.title {
		font-weight: bold;
		color: #d50000;
		font-size: 14px !important;
		letter-spacing: 1px;
	}


	
</style>
{/block}
{block name="body"}
<div class="main-box no-header clearfix" style="background: #f9f9f9;">
	<div class="main-box-body">
		<div style="display: flex;">
			<ul class="navs clearfix statistics" style="margin: 0px 5px">
				<li><span class="text-muted">统计方式：</span></li>
				<li><a href="#" class="active">全部</a></li>
				<li><a href="#">每日统计</a></li>
				<li><a href="#">按户统计</a></li>
				<li><a href="#">按组统计</a></li>
				<li><a href="#">业绩统计</a></li>
			</ul>
		</div>
		<div style="display: flex;align-items: center;justify-content: space-between;padding-top:10px">
			<div class="row">
				<form method="get">
					{include file="material/_date" /}
					<div class="col-sm-12 col-md-1" style="width: 60px;">
						<button class="btn btn-primary" type="submit">搜索</button>
					</div>
					<div class="col-sm-12 col-lg-1" style="width: 120px;">
						<!--                    class="selectpicker" 必须 data-live-search="true"  搜索才加-->
						<select name="family" id="family" class="selectpicker" data-live-search="true">
							<option value="999999">户</option>
							{foreach name="family" item="vo" key="k" }
							<option value="{$vo}" {if input('get.family')==$vo}selected {/if}>{$vo}</option>
							{/foreach}
						</select>
					</div>
					<div class="col-sm-12 col-lg-1" style="width: 120px;">
						<select name="effect" id="effect" class="form-control">
							<option value="999999">是否有效</option>
							<option value="1" {if input('get.effect')==1}selected {/if}>恶意消耗</option>
							<option value="2" {if input('get.effect')==2}selected {/if}>亏损消耗</option>
							<option value="3" {if input('get.effect')==3}selected {/if}>无效消耗</option>
							<option value="4" {if input('get.effect')==4}selected {/if}>有效消耗</option>
							<option value="5" {if input('get.effect')==5}selected {/if}>优质消耗</option>
						</select>
					</div>
					{if(!empty($userlist))}
					<div class="col-sm-12 col-lg-1" style="width: 120px;">
						<select name="userid" id="userid" class="selectpicker" data-live-search="true">
							<option value="999999">全部人员</option>
							{foreach name="userlist" item="vo" key="k" }
							<option value="{$k}" {if input('get.userid')==$k}selected {/if}>{$vo}</option>
							{/foreach}
						</select>
					</div>
					{/if}
				</form>
			</div>
			<div style="display: flex;">
				<div class="statisticsData" style="display: none;">
					<div>
						<p><span>当前页总消耗：</span>{$consumeCount}</p>
						<p><span>总消耗：</span>{$sum.consume}</p>
					</div>
					<div>
						<p><span>当前页当日总回收：</span>{$incomeOne}</p>
						<p><span>当日总回收：</span>{$sum.income_one}</p>
					</div>
					<div>
						<p><span style="width:85px">当前页总回收：</span>{$incomeCount}</p>
						<p><span style="width:85px">总回收：</span>{$sum.income}</p>
					</div>
				</div>
				<div class="pull-right" style="display: flex;">
					<button type="button" style="margin-right:5px" class="btn btn-primary" id="create_content">
						<i class="fa fa-plus"></i> 添加
					</button>
					<button type="button" class="btn btn-primary statisticsData" id="refresh">
						一键刷新
					</button>
					<button type="button" class="btn btn-primary statisticsData" id="refreshRoi">
						刷新有效标识
					</button>
				</div>
			</div>
		</div>
	</div>
	

	<div class="allTable">
		<div class="aTable">
			<div>
				<div class="head_title">
					今日完成事项
				</div>
				<div class="body_content">
					<span>待完成：</span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							1:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							9:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							19:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							24:00
						</button>
					</div>
				</div>
				<div class="body_content" style="margin-top: -30px;">
					<span></span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
					</div>
				</div>
				<div class="body_content success">
					<span>已完成：</span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							1:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							9:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							19:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							24:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							24:00
						</button>
					</div>
				</div>
				<div class="body_content success" style="margin-top: -30px;">
					<span></span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
					</div>
				</div>
			</div>
			<div>
				<div class="head_title">
					本周完成事项
				</div>
				<div class="body_content">
					<span>待完成：</span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							1:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							9:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							19:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span><i class="fa fa-plus"></i>上传数据</span>
							<br>
							24:00
						</button>
					</div>
				</div>
				<div class="body_content" style="margin-top: -30px;">
					<span></span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>组员今日考评</span>
							<br>
							张三
						</button>
					</div>
				</div>
				<div class="body_content success">
					<span>已完成：</span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							1:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							9:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							19:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							24:00
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span>
							<br>
							24:00
						</button>
					</div>
				</div>
				<div class="body_content success" style="margin-top: -30px;">
					<span></span>
					<div>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
						<button type="button" class="btn btn-primary addBtn">
							<span>已完成</span><br>
							张三考评
						</button>
					</div>
				</div>
			</div>
		</div>
		<!-- 每日统计 -->
		<div class="dayTable day" style="display: none;">
			<table class="table table-hover table-bordered"
				style="width: 99%;margin-bottom:0;position: absolute;top: 0;left:0;">
				<thead>
					<tr>
						<th width="33px">户名</th>
						<th width="42px">时间</th>
						<th width="61px">书名</th>
						<th width="42px">方案</th>
						<th width="30px">渠道</th>
						<th width="40px">消耗</th>
						<th width="35px">单点</th>
						<th width="33px">粉价</th>
						<th width="30px">付费率</th>
						<th width="38px">当日回收</th>
						<th width="42px">2日回收</th>
						<th width="42px">3日回收</th>
						<th width="38px">总回收</th>
						<th width="45x">是否有效</th>
						<th width="33x" style="padding:8px 0;">调起/效播</th>
						<th width="37px">操作</th>
					</tr>
				</thead>
			</table>
			<div class="tableScroll" style="width: 100%;margin:0;margin: 0 auto;">
				<table class="table table-hover table-bordered" style="margin: 0;">
					<thead>
						<tr>
							<th width="33px">户名</th>
							<th width="42px">时间</th>
							<th width="61px">书名</th>
							<th width="42px">方案</th>
							<th width="30px">渠道</th>
							<th width="40px">消耗</th>
							<th width="35px">单点</th>
							<th width="33px">粉价</th>
							<th width="30px">付费率</th>
							<th width="38px">当日回收</th>
							<th width="42px">2日回收</th>
							<th width="42px">3日回收</th>
							<th width="38px">总回收</th>
							<th width="45x">是否有效</th>
							<th width="33x" style="padding:8px 0;">调起/效播</th>
							<th width="37px">操作</th>
						</tr>
					</thead>
					<tbody class="tDayBody">
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>1:00</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>9:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>
							<td>编辑</td>
						</tr>
						<tr>
							<td>19:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>24:00</td>
							<td>
								<span>书名书名书名</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>1:00</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>9:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>
							<td>编辑</td>
						</tr>
						<tr>
							<td>19:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>24:00</td>
							<td>
								<span>书名书名书名</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>1:00</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>9:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>
							<td>编辑</td>
						</tr>
						<tr>
							<td>19:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>24:00</td>
							<td>
								<span>书名书名书名</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>1:00</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>9:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>
							<td>编辑</td>
						</tr>
						<tr>
							<td>19:00</td>
							<td>
								<span>
									书名书名书名
								</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>24:00</td>
							<td>
								<span>书名书名书名</span>
							</td>
							<td>
								<div>测试测试测试测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
					</tbody>
				</table>
				<div class="tDayDiv"></div>
			</div>
		</div>
		<!-- 按户统计 -->
		<div class="groupTable hu" style="display: none;">
			<table class="table table-hover table-bordered"
				style="width: 100%;margin-bottom:0;position: absolute;top: 0;left:0;">
				<thead>
					<tr>
						<th width="30px">工号</th>
						<th width="30px">户</th>
						<th width="55px">公众号</th>
						<th width="50px">书名</th>
						<th width="30px">最低roi</th>
						<th width="30px">推广ID</th>
						<th width="45px">推广日期</th>
						<th width="30px">消耗</th>
						<th width="30px">单点</th>
						<th width="30px">粉价</th>
						<th width="30px">付费成本</th>
						<th width="42px">当日回收</th>
						<th width="42px">2日回收</th>
						<th width="42px">3日回收</th>
						<th width="42px">总回收</th>
						<th width="30px">是否有效</th>
						<th width="65px">操作</th>
					</tr>
				</thead>
			</table>
			<div class="tableScroll" style="width: 100%;margin:0;margin: 0 auto;">
				<table class="table table-hover table-bordered" style="margin: 0;">
					<thead>
					<tr>
						<th width="30px">工号</th>
						<th width="30px">户</th>
						<th width="55px">公众号</th>
						<th width="50px">书名</th>
						<th width="30px">最低roi</th>
						<th width="30px">推广ID</th>
						<th width="45px">推广日期</th>
						<th width="30px">消耗</th>
						<th width="30px">单点</th>
						<th width="30px">粉价</th>
						<th width="30px">付费成本</th>
						<th width="42px">当日回收</th>
						<th width="42px">2日回收</th>
						<th width="42px">3日回收</th>
						<th width="42px">总回收</th>
						<th width="30px">是否有效</th>
						<th width="65px">操作</th>
					</tr>
					</thead>
					<tbody class="tFamilyBody">
					{empty name="list"}
					<tr><td colspan="17" align="center">暂无数据</td></tr>
					{/empty}
					{foreach $data['list'] as $k =>$v}
					{foreach $v as $kk => $vv}
					{foreach $vv as $key =>$value}
					<tr class="{$value['refresh'] == 1 ?'active':''}" data-id="{$value.id}">
						{if $kk == 0 && $key == 0}
						<td rowspan="{$data['count'][$k]}" style="background-color: #fff;color: #ccc;">{$value['uname']}</td>
						{/if}
						{if $key == 0}
						<td rowspan="{$vv | count}" style="background-color: #fff;color: #ccc;">{$value['family']}</td>
						{/if}

						<td>
							{$value['gzh_name']} <br>
							<span class="time">{$value['create_time'] | date="Y-m-d H:i",###}</span>
						</td>
						<td>
							<span style="display: -webkit-box;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 1;
							overflow: hidden;">{$value['book_name']}</span>
						</td>
						<td>{$value['roi']}</td>
						<td>
							{foreach name="$value['extension_id']" item="vvv" key="kkk" }
							{$vvv}<br/>
							{/foreach}
						</td>
						<td>{$value['extension_date']}</td>
						<td>{$value['consume']}</td>
						<td>{$value['point']}</td>
						<td>{$value['price']}</td>
						<td>{$value['rate']}</td>
						<td>
							{foreach name="$value['income_one']" item="one" key="kone" }
							{$one}<br>
							{/foreach}
							<span class="red">{$value['one_proportion'] > 0 ? '+' . $value['one_proportion'] : $value['one_proportion']}%</span>
						</td>
						<td>
							{foreach name="$value['income_two']" item="two" key="ktwo" }
							{$two}<br>
							{/foreach}
							<span class="red">{$value['two_proportion'] > 0 ? '+' . $value['two_proportion'] : $value['two_proportion']}%</span>
						</td>
						<td>
							{foreach name="$value['income_three']" item="three" key="kthree" }
							{$three}<br>
							{/foreach}
							<span class="red">{$value['three_proportion'] > 0 ? '+' . $value['three_proportion'] : $value['three_proportion']}%</span>
						</td>
						<td>
							{$value['income']}<br>
							<span class="red">{$value['income_proportion'] > 0 ? '+' . $value['income_proportion'] : $value['income_proportion']}%</span>
						</td>
						<td>{$value['effect']}</td>
						<td>
							{if $value['refresh'] == 1}
							<a href="JavaScript:;" onclick="editreferral_hu(this,'create-hu-modal','refresh')" data-json='{:json_encode($value)}'>更新</a>
							{if checkAuthRule('admin/statistics/edit',false)}<a href="JavaScript:;" onclick="editreferral_hu(this,'create-hu-modal','edit')" data-json='{:json_encode($value)}'> 编辑</a>{/if}
							{else}
							<a style="color: #ccc"> 更新</a>
							{if session('user_auth.uid') == 1}
							{if checkAuthRule('admin/statistics/edit',false)}<a href="JavaScript:;" onclick="editreferral_hu(this,'create-hu-modal','edit')" data-json='{:json_encode($value)}'> 编辑</a>{/if}
							{else}
							<a style="color: #ccc"> 编辑</a>
							{/if}
							{/if}
							{if checkAuthRule('admin/statistics/del',false)}<a href="{:url('del',array('id'=>$value['id']))}" class="ajax-get confirm"> 删除</a>{/if}
							<a href="{:url('updateData',array('id'=>$value['id']))}" class="ajax-get confirm"> 刷新</a>
						</td>
					</tr>
					{/foreach}
					{/foreach}
					{/foreach}
					</tbody>
				</table>
				<div class="tFamilyDiv"></div>
			</div>
		</div>
		<!-- 按组统计 -->
		<div class="dayTable groupTable zu" style="display: none;">
			<table class="table table-hover table-bordered"
				style="width: 99%;margin-bottom:0;position: absolute;top: 0;left:0;">
				<thead>
					<tr>
						<th width="30px" style="padding: 8px 6px;">户名</th>
						<th width="38px">公众号</th>
						<th width="38px">组</th>
						<th width="62px">书名</th>
						<th width="38px">推广ID</th>
						<th width="35px">消耗</th>
						<th width="32px">单点</th>
						<th width="30px" style="padding: 8px 5px;">效播成本</th>
						<th width="25px" style="padding: 8px 5px;">粉价</th>
						<th width="35px">付费率</th>
						<th width="36px">当日回收</th>
						<th width="38px">2日回收</th>
						<th width="38px">3日回收</th>
						<th width="40px">总回收</th>
						<th width="28x" style="padding: 8px 0px;">是否有效</th>
						<th width="32px">操作</th>
					</tr>
				</thead>
			</table>
			<div class="tableScroll asd" style="width: 100%;margin:0;margin: 0 auto;">
				<table class="table table-hover table-bordered" style="margin: 0;">
					<thead>
						<tr>
							<th width="30px" style="padding: 8px 6px;">户名</th>
							<th width="38px">公众号</th>
							<th width="38px">组</th>
							<th width="62px">书名</th>
							<th width="38px">推广ID</th>
							<th width="35px">消耗</th>
							<th width="32px">单点</th>
							<th width="30px" style="padding: 8px 5px;">效播成本</th>
							<th width="25px" style="padding: 8px 5px;">粉价</th>
							<th width="35px">付费率</th>
							<th width="36px">当日回收</th>
							<th width="38px">2日回收</th>
							<th width="38px">3日回收</th>
							<th width="40px">总回收</th>
							<th width="28x" style="padding: 8px 0px;">是否有效</th>
							<th width="32px">操作</th>
						</tr>
					</thead>
					<tbody class="tGroupBody">
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>
								<a href="JavaScript:'><i class="fa fa-edit"></i> 编辑</a>
							</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="4" style="background-color: #fff;font-weight:bold">B24</td>
							<td>公众号名字</td>
							<td>1:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>9:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <br>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <br>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <br>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <br>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>19:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>公众号名字</td>
							<td>24:00</td>
							<td>
								<span style="display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 1;
								overflow: hidden;">
									书名书名书名
								</span>
							</td>
							<td>测试测试测</td>
							</td>

							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>

					</tbody>
				</table>
				<div class="tGroupDiv"></div>
			</div>
		</div>
		<!-- 业绩统计 -->
		<div class="dataTable performance" style="display: none;">
			<table class="table table-hover table-bordered"
				style="width: 99%;margin-bottom:0;position: absolute;top: 0;left:0;">
				<thead>
					<tr>
						<th width="31px">户名</th>
						<th width="31px">时间</th>
						<th width="61px">书名</th>
						<th width="42px">方案</th>
						<th width="30px">渠道</th>
						<th width="40px">消耗</th>
						<th width="35px">单点</th>
						<th width="33px">粉价</th>
						<th width="30px">付费率</th>
						<th width="39px">当日回收</th>
						<th width="42px">2日回收</th>
						<th width="43px">3日回收</th>
						<th width="38px">总回收</th>
						<th width="45x">是否有效</th>
						<th width="33x" style="padding:8px 0;">调起/效播</th>
						<th width="37px">操作</th>
					</tr>
				</thead>
			</table>
			<div class="tableScroll" style="width: 100%;margin:0;margin: 0 auto;">
				<table class="table table-hover table-bordered" style="margin: 0;">
					<thead>
						<tr>
							<th width="31px">户名</th>
							<th width="31px">时间</th>
							<th width="61px">书名</th>
							<th width="42px">方案</th>
							<th width="30px">渠道</th>
							<th width="40px">消耗</th>
							<th width="35px">单点</th>
							<th width="33px">粉价</th>
							<th width="30px">付费率</th>
							<th width="39px">当日回收</th>
							<th width="42px">2日回收</th>
							<th width="43px">3日回收</th>
							<th width="38px">总回收</th>
							<th width="45x">是否有效</th>
							<th width="33x" style="padding:8px 0;">调起/效播</th>
							<th width="37px">操作</th>
						</tr>
					</thead>
					<tbody class="tBody">
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td rowspan="3" style="background-color: #fff;font-weight:bold">B24</td>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-14</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>否</td>

							<td>编辑</td>
						</tr>
						<tr>
							<td>11-16</td>
							<td>
								<div>
									书名书名书名
								</div>
							</td>
							<td>
								<div>测试测试</div>
							</td>
							</td>
							<td>渠道</td>
							<td>1568</td>
							<td>0.56</td>
							<td>999</td>
							<td>6.2</td>
							<td>7.5%</td>
							<td>
								2500 <span class="red">67%</span>
							</td>
							<td>
								300 <span class="red">+17%</span>
							</td>
							<td>
								150 <span class="red">+5%</span>
							</td>
							<td>
								30000 <span class="red">107%</span>
							</td>
							<td>是</td>

							<td>编辑</td>
						</tr>
					</tbody>
				</table>
				<div class="tDiv"></div>
			</div>
		</div>
	</div>
	<!-- <div class="tip statisticsData" style="display: none;">
		<p>优质消耗：当日回收达到最低ROI的2倍，或总回收达到总ROI的2倍。优质消耗全部计入当月业绩。另：每月百度平台优质消耗达到20万，额外奖励现金5000元。优质消耗达到40万，额外奖励现金10000元。</p>
		<p>有效消耗：当日回收达到最低ROI的100%-200%，或总回收达到总ROI的100%+。有效消耗全部计入当月业绩。</p>
		<p>无效消耗：当日回收达到最低ROI的70-100%，消耗数据不计入当月业绩，也不扣出业绩金额。</p>
		<p>亏损消耗：当日回收达到最低ROI的35-70%，总ROI未达到100，总消耗超过300（数据会设400元）。消耗数据需要扣除当月业绩。（例：某员工当月有效消耗42万，其中亏损消耗2万。那当月实际业绩需要扣除2万亏损消耗，该员工的实际业绩是40万。）</p>
		<p>恶意消耗：1计划设置错误或未检查流程导致空跑算恶意消耗。2总消耗超过500元，当日回款低于最低ROI的35%，算恶意消耗。（例：千金的最低ROI是当日回款60%，若当日某个创意放量超过500元（数据会设600元），当日回收低于60%X35%=21%，则算恶意消耗）恶意消耗的亏损部分，在当月工资里扣除，由员工自行承担60%，上级负责人承担20%，公司承担20%。</p>
	</div> -->
	{$page}
	<!-- 每日统计 -->
	<div class="modal fade" id="create-day-modal">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
							aria-hidden="true">×</span></button>
					<span style="font-size: 20px;"><span id="referralname">添加数据</span></span>
				</div>
				<div class="modal-body">
					<div data-bind="visible: loading" class="loading-panel" style="display: none;">
						<i class="fa fa-spin fa-spinner"></i>
					</div>
					<form class="form-horizontal modelform">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">户名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">书名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">方案</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">渠道</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">消耗</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">单点</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">粉价</label></label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">付费率</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">当日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">2日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">3日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">总回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">调起/效播</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" id="createreferral" class="btn btn-primary ">提交</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 按组统计 -->
	<div class="modal fade" id="create-zu-modal">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
							aria-hidden="true">×</span></button>
					<span style="font-size: 20px;"><span id="referralname">添加数据</span></span>
				</div>
				<div class="modal-body">
					<div data-bind="visible: loading" class="loading-panel" style="display: none;">
						<i class="fa fa-spin fa-spinner"></i>
					</div>
					<form class="form-horizontal modelform">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">公众号</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">户名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">户名</label>
									<div class="col-lg-8">
										<select class="selectpicker multipleSelete" multiple>
											<option value="1">广东省</option>
											<option value="2">广西省</option>
											<option value="3">福建省</option>
											<option value="4">湖南省</option>
											<option value="5">山东省</option>
										</select>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">组名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">书名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">推广ID</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">消耗</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">单点</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">效播成本</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">粉价</label></label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-3">付费率</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" id="createreferral" class="btn btn-primary ">提交</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 业绩统计 -->
	<div class="modal fade" id="create-performance-modal">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
							aria-hidden="true">×</span></button>
					<span style="font-size: 20px;"><span id="referralname">添加数据</span></span>
				</div>
				<div class="modal-body">
					<div data-bind="visible: loading" class="loading-panel" style="display: none;">
						<i class="fa fa-spin fa-spinner"></i>
					</div>
					<form class="form-horizontal modelform">
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">户名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">书名</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">方案</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">渠道</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">消耗</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">单点</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">粉价</label></label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">付费率</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">当日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">2日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">3日回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">总回收</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-sm-4">调起/效播</label>
									<div class="col-lg-8">
										<input type="text" class="form-control">
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" id="createreferral" class="btn btn-primary ">提交</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="__PUBLIC__/plugs/bootstrap-select/js/bootstrap-select.js"></script>
<script src="/public/plugs/datepicker/js/foundation-datepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/plugs/layer/layer.js"></script>
<script>
	var url;
	var activeIndex = 0;
	$('#create_content').on('click', function () {
		url = "{:url('add')}"
		$('#extension_date').fdatepicker({
			format: 'yyyy-mm-dd',
			initialDate:getFormatDate()
		});
		switch (activeIndex) {
			case 1:
				$('#create-day-modal').modal({backdrop: 'static', keyboard: false})
				break;
			case 2:
				$('#create-hu-modal').modal({backdrop: 'static', keyboard: false})
				break;
			case 3:
				$('#create-zu-modal').modal({backdrop: 'static', keyboard: false})
				break;
			case 4:
				$('#create-performance-modal').modal({backdrop: 'static', keyboard: false})
				break;
		}
		$('.modelform')[activeIndex-1].reset()
	});
	// 切换表格
	function changeTable(num){
		$('.statistics li').eq(num+1).children().addClass('active').parent().siblings().children().removeClass('active')
		$('.allTable').children().eq(num).show().siblings().hide()
		activeIndex = num
	}
	// 设置表格高度
	// function setTableHeight(){
	// 	// 业绩
	// 	$('.tDiv').height($('.tBody').height() - getDomHeight($('.tBody').children(),3))
	// 	$('.performance .tableScroll').css({
	// 		'overflow-y': 'scroll',
	// 		'height': $('.tBody').height() + 38
	// 	})
	// 	// 每日
	// 	$('.tDayDiv').height($('.tDayBody').height() - getDomHeight($('.tDayBody').children(),4))
	// 	$('.day .tableScroll').css({
	// 		'overflow-y': 'scroll',
	// 		'height': $('.tDayBody').height() + 38
	// 	})
	// 	// 按组
	// 	$('.tGroupDiv').height($('.tGroupBody').height() - getDomHeight($('.tGroupBody').children(),4))
	// 	$('.zu .tableScroll').css({
	// 		'overflow-y': 'scroll',
	// 		'height': $('.tGroupBody').height() + 38
	// 	})
	// 	// 按户
	// 	$('.tFamilyDiv').height($('.tFamilyBody').height() - getDomHeight($('.tFamilyBody').children(),1))
	// 	$('.hu .tableScroll').css({
	// 		'overflow-y': 'scroll',
	// 		'height': $('.tFamilyBody').height() + 38
	// 	})
	// }
	changeTable(Number(localStorage.getItem('waTableActive')))
	// setTableHeight()
	// 遍历分类 是否展示统计数据
	$('.statistics li').each((index,elem)=>{
		if($(elem).children().hasClass('active')){
			if($(elem).children().text() == '按户统计'){
				$('.statisticsData').show()
			}else{
				$('.statisticsData').hide()
			}
		}
	})
	// 分类切换
	$('.statistics li').on('click', function () {
		$(this).children().addClass('active').parent().siblings().children().removeClass('active')
		$('.allTable').children().eq($(this).index() - 1).show().siblings().hide()
		activeIndex = $(this).index() - 1
		localStorage.setItem('waTableActive',activeIndex)
		// setTableHeight()
		if($(this).children().text() == '按户统计'){
			$('.statisticsData').show()
		}else{
			$('.statisticsData').hide()
		}
	})
	// 获取元素高度
	function getDomHeight(dom,num){
		let doms = dom.slice(dom.length-num)
		let allHeight = 0
		doms.each((index,e)=>{
			if(index <= num){
				allHeight+= $(e).height()
			}
		})
		return allHeight;
	}
</script>
{include file="statistics/table/hu" /}
<script type="text/javascript">

	// 筛选框
	$(() => {
		// 户
		$("#family").on('changed.bs.select', function (e, clickedIndex, isSelected, previousValue) {
			search()
		});

		//频道
		$('#effect').change(() => {
			search()
		});
		$('#userid').change(() => {
			search()
		});

		function search(){
			let searchUrl = `?family=${$("#family").val()}&effect=${$('#effect').val()}&userid=${$('#userid').val()}&startdata=${$('#startdata').val()}&enddata=${$('#enddata').val()}`
			// let searchUrl = `?family=${$("#family").val()}&channel=${$('#channel').val()}&pub_sort=${$('#pub_sort').val()}`
			window.location.href= searchUrl
		}
	});
</script>
{/block}